package com.yxq.mdt.app.modules.chat.ui;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentTransaction;

import com.hyphenate.easeui.ui.EaseChatFragment;
import com.hyphenate.easeui.ui.EaseConversationListFragment;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.base.BaseActivity;

/**
 * @author L
 * @time
 * @describe 聊天
 */
public class ChatActivity extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_chat;
    }

    @Override
    public void initView() {
        EaseChatFragment easeChatFragment = new EaseChatFragment();
        easeChatFragment.setArguments(getIntent().getExtras());
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        if (!easeChatFragment.isAdded()) {
            transaction.add(R.id.container, easeChatFragment);
        }
        transaction.commitAllowingStateLoss();
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {

    }
}
